import type { Response } from '@/api/config/types';
import axios from 'axios';
/**
 * @description:
 * 获取页面设置信息
 * 存储在系统配置中
 * 数据有缓存
 */
export const pageSettings = () => {
  return axios.get<
    Response<{
      config: any;
    }>
  >('public/settings');
};
/**
 * @description:预览文件，校验cookies中的token
 */
export const previewFile = (path: string) => {
  return axios.get('public/previewFile', {
    params: {
      path,
    },
  });
};
